import request from "./request.js";

export const addAnswer = (data) => request ({
    method: "post",
    url: "/answers",
    data,
  });
 
export const getAnswers = (params) =>request({
  method: "get",
  url: "/answers",
  params
});

export const getAnswer = (id) =>request({
    method: "get",
    url: `/answers/${id}`,
  })

  export const delAnswer = (id) =>request({
    method: "delete",
    url: `/answers/${id}`,
  })
